package com.woniuxy.yogaapp.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import com.woniuxy.yogaapp.pojo.ClubCoach;

public interface ClubCoachMapper {

	/**
	 * 教练申请加入场馆
	 * 
	 * @param clubCoach
	 * @return
	 */
	@Insert("insert into clubcoach values (#{yid},#{cid},#{yuid},#{cuid},#{yname},#{cname},#{approve})")
	int applyForClub(ClubCoach clubCoach);

	/**
	 * 场馆 同意或者拒绝 教练加入场馆 改变approve属性 1拒绝 2同意
	 */
	@Update("update clubcoach set approve=#{approve} where yuid=#{yuid} and cuid=#{cuid}")
	int updateClubApprove(ClubCoach clubCoach);

}
